treeview: Avoid usage of gdk_window_get_device_position() during DnD
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 21 May 2015 11:53:43 +0000 (13:53 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 21 May 2015 16:11:21 +0000 (18:11 +0200)
commitb666f14ef826051660241fddfa7c4b5b47cbb197
tree87207f7beb6fb663dd87e1f0f9c1af54aec749c1
parentb54031d505dc4f9e65737549a92cc41900255998
treeview: Avoid usage of gdk_window_get_device_position() during DnD

Just use the last coordinates given on XdndPosition/drag_motion() in
order to trigger scrolling.

When running on Xwayland, the pointer position is unknown at this
stage on the X11 side, so the coordinates given here are bogus.
This change avoids both roundtrips and this situation.

https://bugzilla.gnome.org/show_bug.cgi?id=749679
gtk/gtktreeview.c